package com.lwj.test.annatation;

@Table(tableName = "T_USER")
public class User {

	@Columns(fieleName = "ID", isPrimaryKey = true)
	private Long id;
	@Columns(fieleName = "USER_NAME", isPrimaryKey = false)
	private String userName;
	@Columns(fieleName = "AGE", isPrimaryKey = false)
	private int age;
	@Columns(fieleName = "WORK", isPrimaryKey = false)
	private String work;
	
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	
	public String getWork() {
		return work;
	}
	public void setWork(String work) {
		this.work = work;
	}
	
	
}
